range: fix fill level for vertical inverted scales
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 29 Feb 2016 20:53:08 +0000 (12:53 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 29 Feb 2016 20:53:08 +0000 (12:53 -0800)
gtk/gtkrange.c

index b665ec299bfd62849aff5a7c21c82cc4ed3cf917..bbfd3bc61024df22d9d4b4ebc0aa75240eef3fca 100644 (file)
@@ -1940,7 +1940,7 @@ gtk_range_allocate_trough (GtkCssGadget        *gadget,
           fill_alloc.height *= fill;
 
           if (should_invert (range))
-            fill_alloc.y += allocation->height - (fill_alloc.height * fill);
+            fill_alloc.y += allocation->height - fill_alloc.height;
         }
 
       gtk_css_gadget_allocate (priv->fill_gadget,